<template>
    <div>这是动态组件2
        <span style="color: red">{{ data }}</span>
    </div>
</template>

<script>
export default {
    props: {
        data: {
            type: String,
            default: "",
        },
    },
    created() { 
        console.log("子组件2的created")
    },
};
</script>

<style>
</style>